package fair.acm;

import java.util.Scanner;

/**
 * @author fair_wu
 * @version v1.0
 * @date 2021-02-25 下午 22:45
 */
public class Main1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        char temp;
        while (scanner.hasNext()) {
            String line = scanner.nextLine();
            char[] chars = line.toCharArray();
            for (int i = 0; i < chars.length; i++) {
                if (chars[0] > chars[1]) {
                    temp = chars[0];
                    chars[0] = chars[1];
                    chars[1] = temp;
                }
                if (chars[0] > chars[2]) {
                    temp = chars[0];
                    chars[0] = chars[2];
                    chars[2] = temp;
                }
                if (chars[1] > chars[2]) {
                    temp = chars[1];
                    chars[1] = chars[2];
                    chars[2] = temp;
                }
            }
            System.out.println(chars[0] + " " + chars[1] + " " + chars[2]);
        }
    }
}
